/* 车辆追踪页面样式 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.header-right .el-button-group {
    display: flex;
    gap: 8px;
}

/* 主要内容区 */
.main-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    height: calc(100vh - 140px);
}

/* 左侧车辆列表面板 */
.vehicle-list-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.vehicle-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.vehicle-item {
    padding: 16px;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.vehicle-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-item.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.vehicle-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vehicle-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.vehicle-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-details i {
    font-size: 14px;
}

/* 右侧地图和详情面板 */
.map-details-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 地图容器 */
.map-container {
    flex: 1;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* 车辆详情卡片 */
.vehicle-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 运行轨迹 */
.tracking-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tracking-history h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.el-timeline {
    padding: 0;
}

.el-timeline-item__content {
    color: #374151;
}

.el-timeline-item__timestamp {
    color: #6b7280;
}

/* 表单样式 */
.el-form-item__label {
    font-weight: 500;
    color: #374151;
}

.el-input__inner,
.el-select {
    width: 100%;
}

/* 按钮样式 */
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--success {
    background: #10b981;
    border: none;
}

.el-button--success:hover {
    background: #059669;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .vehicle-list-panel {
        height: 400px;
    }

    .map-container {
        height: 400px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button-group {
        width: 100%;
    }

    .header-right .el-button {
        flex: 1;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .vehicle-list-panel,
    .vehicle-details-card {
        background: #1f2937;
    }

    .header-left h1,
    .panel-header h3,
    .card-header h3,
    .tracking-history h4,
    .vehicle-info h4 {
        color: #f9fafb;
    }

    .vehicle-item {
        background: #111827;
        border-color: #374151;
    }

    .vehicle-item:hover {
        background: #1f2937;
    }

    .vehicle-item.active {
        background: rgba(102, 126, 234, 0.2);
    }

    .vehicle-details {
        color: #9ca3af;
    }

    .map-container {
        background: #111827;
    }

    .el-timeline-item__content {
        color: #f9fafb;
    }

    .el-timeline-item__timestamp {
        color: #9ca3af;
    }

    .el-form-item__label {
        color: #f9fafb;
    }

    .el-input__inner,
    .el-textarea__inner {
        background-color: #111827;
        border-color: #374151;
        color: #f9fafb;
    }

    .el-input__inner:focus,
    .el-textarea__inner:focus {
        border-color: #667eea;
    }
} 